'use strict';

var circularqueues = [];
var size = 0
var capacity = 8;
var cir=[]

exports.put = function (element) {
circularqueues.push(element);
for (var i = 0; i < circularqueues.length; i++) {
cir[i%(capacity)] = circularqueues[i]
}
return cir
}
